package com.blog.bean;

import java.util.Date;

public class Blog {

    private int id;
    private int uid;
    private String content;
    private int thumbsUp;
    private int comment;
    private Date createTime;
    private User user;
    private boolean isThumbs;

    public boolean isThumbs() {
        return isThumbs;
    }

    public void setThumbs(boolean thumbs) {
        isThumbs = thumbs;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getThumbsUp() {
        return thumbsUp;
    }

    public void setThumbsUp(int thumbsUp) {
        this.thumbsUp = thumbsUp;
    }

    public int getComment() {
        return comment;
    }

    public void setComment(int comment) {
        this.comment = comment;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", uid=" + uid +
                ", content='" + content + '\'' +
                ", thumbsUp=" + thumbsUp +
                ", comment=" + comment +
                ", createTime=" + createTime +
                ", user=" + user +
                '}';
    }
}
